﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CS322_V10.entities;

namespace CS322_V10
{
    public partial class EvidencijaForm : Form
    {
        public EvidencijaForm()
        {
            InitializeComponent();
        }

        private void EvidencijaForm_Load(object sender, EventArgs e)
        {
            Student student1 = new Student(1, "1234500", "Zoran", "Polić", 1);
            lbxStudenti.Items.Add(student1.Ime + " " + student1.Prezime);
            Student student2 = new Student(2, "1234501", "Milan", "Krstin", 1);
            lbxStudenti.Items.Add(student2.Ime + " " + student2.Prezime);
            Student student3 = new Student(3, "1234502", "Mateja", "Opačić", 1);
            lbxStudenti.Items.Add(student3.Ime + " " + student3.Prezime);
            Student student4 = new Student(4, "1234503", "Dejan", "Beljić", 1);
            lbxStudenti.Items.Add(student4.Ime + " " + student4.Prezime);

            Profesor profesor1 = new Profesor(1, "1234500", "Slobodan", "Jovanović", 1);
            lbxProfesori.Items.Add(profesor1.Ime + " " + profesor1.Prezime);
            Profesor profesor2 = new Profesor(2, "1234501", "Svetlana", "Cvetanović", 1);
            lbxProfesori.Items.Add(profesor2.Ime + " " + profesor2.Prezime);

            tbxBrojProfesora.Text = Profesor.KolikoProfesora();
            tbxBrojStudenata.Text = Student.KolikoStudenata();

        }
    }
}
